home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
Tools
/
getline
/
testgl.c
< prev
Wrap
C/C++ Source or Header
|
1995-05-03
|
257b
|
18 lines
#include <stdio.h>
#include "getline.h"
main()
/*
* just echo user input lines, letting user edit them and move through
* history list
*/
{
char *p;
do {
p = getline("PROMPT>>>> ");
gl_histadd(p);
fputs(p, stdout);
} while (*p != 0);
}